@charset "utf-8";

.layer {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    left: 0;
    top: 0;
    text-align: justify;
    word-break: break-all;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-flex;
    display: flex;
    visibility: hidden;
    
    .dialogs {
        background-color: #ffffff;
        min-width: 370px;
        max-width: 100%;
        border-radius: 5px;
        overflow: hidden;
        display: none;
        margin: auto;
        position: relative;
        
        .close {
            position: absolute;
            top: 9px;
            right: 20px;
            width: 32px;
            height: 32px;
            line-height: 32px;
            font-size: 16px;
            font-style: normal;
            text-align: center;
            border-radius: 3px;
            transition: background-color 300ms ease;
            cursor: pointer;
            &:hover {
                background-color: #eeeeee;
            }
            &:active {
                margin-top: 1px;
                margin-right: -1px;
            }
        }
        
        .caption {
            height: 50px;
            line-height: 50px;
            background: #f8f8f8;
            border-bottom: 1px solid #e7e7e7;
            padding: 0 80px 0 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            
            ~ .content {
                margin-top: 0;
            }
            
            ~ .actions {
                padding-bottom: 36px;
            }
        }
        
        .content {
            overflow: auto;
            margin-top: 50px;
            padding: 20px;
            text-align: center;
        }
        
        .actions {
            font-size: 0;
            text-align: center;
            padding: 20px 20px 28px 20px;
            white-space: nowrap;
            
            > * {
                font-size: 13px;
                
                ~ * {
                    margin-left: 20px;
                }
            }
            
            input[type="checkbox"] {
                display: none;
                
                &:checked {
                    + label {
                        i {
                            &:before {
                                visibility: visible;
                                opacity: 1;
                            }
                        }
                    }
                }
            }
            
            label {
                display: inline-block;
                vertical-align: middle;
                font-size: 0;
                -moz-user-select: none;
                -webkit-user-select: none;
                -ms-user-select: none;
                -khtml-user-select: none;
                cursor: pointer;
                
                * {
                    display: inline-block;
                    vertical-align: middle;
                    font-size: 13px;
                    height: 15px;
                    line-height: 15px;
                }
                
                i {
                    width: 15px;
                    border: 1px solid #878787;
                    border-radius: 1px;
                    margin-right: 10px;
                    background-color: #f6f6f6;
                    color: #eb413d;
                    text-align: center;
                    font-weight: bold;
                    transition: all 300ms ease;
                    
                    &:before {
                        visibility: hidden;
                        opacity: 0;
                    }
                }
                
                span {
                    color: #878787;
                }
            }
        }
    }
}

//性别切换
.switch_sex{
    width: 100px;
    height: 42px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #e7e7e7;
    border-radius: 3px;
    overflow: hidden;
    .man,.woman{
        display: none;
        color: #435059;
        width: 58px;
        height: 40px;
        i{
            font-size: 24px;
            vertical-align: top;
            margin-left: -5px;
            color: #5eb705;
        }
    }
    &>i{
        color: #9a9a9a;
        width: 40px;
        height: 40px;
        border-left: 1px solid #e7e7e7;
        transition: all 0.2s linear;
        &:hover{
            cursor: pointer;
            background: #f3f3f3;
        }
    }
    .show{
        display: block;
    }
}